package com.stormrage.edu.serv.ent.impl;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stormrage.edu.dao.ent.EntEnterpriseScoreDao;
import com.stormrage.edu.serv.ent.EntEnterpriseScoreServ;
import com.stormrage.entity.ent.EntEnterpriseScore;
import com.stormragetech.core.exception.StormrageTechException;

@Service
public class EntEnterpriseScoreServImpl implements EntEnterpriseScoreServ {

	private static final Logger logger = LoggerFactory.getLogger(EntEnterpriseServImpl.class);

	@Autowired
	private EntEnterpriseScoreDao entEnterpriseScoreDao;

	@Override
	public EntEnterpriseScore queryByEntId(Integer arg0) throws StormrageTechException {

		logger.debug(" 【 Serv 】- 【 EntEnterpriseServ 】- 【 queryByEntId 】-【 STARTED 】");

		Map<String, Object> map = new HashMap<String, Object>();
		map.put("entId", arg0);

		EntEnterpriseScore entity = entEnterpriseScoreDao.queryByEntId(map);

		logger.debug(" 【 Serv 】- 【 EntEnterpriseServ 】- 【 queryByEntId 】-【 COMPLETED 】");
		return entity;

	}

}
